package com.toommi.refuse.exception;

import com.toommi.refuse.enums.RefuseTypeExceptionEnum;
import com.toommi.refuse.enums.WechatUserExceptionEnum;

/**
 * ..
 * 微信用户操作异常
 *
 * @author yangg
 * @since 2019-07-24 09:51
 */
public class RefuseTypeException extends Exception {

    private int code;

    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public RefuseTypeException() {

    }

    public RefuseTypeException(RefuseTypeExceptionEnum exceptionEnum) {
        this.code = exceptionEnum.getCode();
        this.message = exceptionEnum.getMessage();
    }


    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
